package guoanmaker.provider.business.model;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import java.util.Collection;
import java.util.Date;


import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.fasterxml.jackson.annotation.JsonManagedReference;


import guoanmaker.provider.helper.common.abstractobj.IdEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name="t_provide_business_server_range")
public class ProviderBusinessServerRange extends IdEntity {
	private Date create_time;
	
	private String old_commoditys;//变更前服务范围
	
	private String del_commoditys;//取消的服务范围
	
	private String ins_commoditys;//新增的服务范围
	
	private String new_commoditys;//最新的经营范围
	
	@Transient
	private String spare_commoditys;//剩下的服务范围
	
	@OneToOne
	@JoinColumn(name="business_id")
	private ProviderBusiness business;
	
}
